﻿using System;
using System.ServiceModel.Description;

namespace PluginRegistrationTool
{
    /// <summary>
    /// Configuration for Dynamics CRM Server connection.
    /// </summary>
    internal class Configuration
    {
        /// <summary>
        /// ServerAddress.
        /// </summary>
        private String _serverAddress;

        /// <summary>
        /// ServerAddress.
        /// </summary>
        internal String ServerAddress
        {
            get
            {
                return _serverAddress;
            }
            set
            {
                _serverAddress = value;
            }
        }

        /// <summary>
        /// OrganizationName.
        /// </summary>
        private String _organizationName;

        /// <summary>
        /// OrganizationName.
        /// </summary>
        internal String OrganizationName
        {
            get
            {
                return _organizationName;
            }
            set
            {
                _organizationName = value;
            }
        }

        /// <summary>
        /// DiscoveryUri.
        /// </summary>
        private Uri _discoveryUri;

        /// <summary>
        /// DiscoveryUri.
        /// </summary>
        internal Uri DiscoveryUri
        {
            get
            {
                return _discoveryUri;
            }
            set
            {
                _discoveryUri = value;
            }
        }

        /// <summary>
        /// OrganizationUri.
        /// </summary>
        private Uri _organizationUri;

        /// <summary>
        /// OrganizationUri.
        /// </summary>
        internal Uri OrganizationUri
        {
            get
            {
                return _organizationUri;
            }
            set
            {
                _organizationUri = value;
            }
        }

        /// <summary>
        /// HomeRealmUri.
        /// </summary>
        private Uri _homeRealmUri = null;

        /// <summary>
        /// HomeRealmUri.
        /// </summary>
        internal Uri HomeRealmUri
        {
            get
            {
                return _homeRealmUri;
            }
        }

        /// <summary>
        /// DeviceCredentials.
        /// </summary>
        private ClientCredentials _deviceCredentials = null;

        /// <summary>
        /// DeviceCredentials.
        /// </summary>
        internal ClientCredentials DeviceCredentials
        {
            get
            {
                return _deviceCredentials;
            }
            set
            {
                _deviceCredentials = value;
            }
        }

        /// <summary>
        /// Credentials.
        /// </summary>
        private ClientCredentials _credentials = null;

        /// <summary>
        /// Credentials.
        /// </summary>
        internal ClientCredentials Credentials
        {
            get
            {
                return _credentials;
            }
            set
            {
                _credentials = value;
            }
        }
    }
}
